package com.example.haosiji.activity;

import com.example.haosiji.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;

public class moreActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.moreactivity);
		
		/*点击代驾协议事件处理*/
		/*LinearLayout pLinearLayout = (LinearLayout)findViewById(R.id.aboutptotocol);
		pLinearLayout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(moreActivity.this, ActivityProtocol.class);
                startActivity(intent);
			}
		});*/
		
		/*点击客服热线事件处理*/
		LinearLayout customLinearLayout = (LinearLayout)findViewById(R.id.customService);
		customLinearLayout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				TextView phoneNum = (TextView)findViewById(R.id.phoneNum);
				String s = phoneNum.getText().toString().trim();
				Intent myIntentDial = new Intent("android.intent.action.CALL",Uri.parse("tel:"+s));
				startActivity(myIntentDial);
				
			}
		});
		
		
		
	}
}
